package com.keelau.ui.bind;

import com.keelau.idao.AliCatalogTreeDao;
import com.keelau.idao.model.AliCatalog;
import com.keelau.repository.DataManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.inject.Inject;
import javax.inject.Named;
import javax.swing.table.DefaultTableModel;
import java.util.List;

@Named
public class JTableBindData extends DefaultTableModel {

    Logger logger = LoggerFactory.getLogger(JTableBindData.class);

    @Inject
    DataManager dataManager;

    @Inject
    AliCatalogTreeDao aliCatalogMapper;

    List<AliCatalog> aliCatalogList;

    String[] columnNames = new String[]{"","" };



    public JTableBindData(){
        logger.debug( "aliCataLogList is new start =" );
        //aliCatalogList = dataManager.getCataLogList();
        logger.debug( "aliCataLogList is null ="  + (aliCatalogList==null));
    }

    @Override
    public int getRowCount() {
        return 0;//aliCatalogList.size();
    }

    @Override
    public int getColumnCount() {
        return super.getColumnCount();
    }

    @Override
    public String getColumnName(int column) {
        return super.getColumnName(column);
    }

    @Override
    public Object getValueAt(int row, int column) {
        return super.getValueAt(row, column);
    }

    @Override
    public void setValueAt(Object aValue, int row, int column) {
        super.setValueAt(aValue, row, column);
    }
}
